package org.linlinjava.litemall.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallGoods;
import org.linlinjava.litemall.db.domain.LitemallGoodsExample;

public interface LitemallGoodsMapper {

    long countByExample(LitemallGoodsExample example);

    int deleteByExample(LitemallGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(LitemallGoods record);

    int insertSelective(LitemallGoods record);

    List<LitemallGoods> selectByExampleSelective(@Param("example") LitemallGoodsExample example, @Param("selective") LitemallGoods.Column ... selective);

    List<LitemallGoods> selectByExampleWithBLOBs(LitemallGoodsExample example);

    List<LitemallGoods> selectByExample(LitemallGoodsExample example);

    LitemallGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);

    int updateByExampleWithBLOBs(@Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);

    int updateByExample(@Param("record") LitemallGoods record, @Param("example") LitemallGoodsExample example);

    int updateByPrimaryKeySelective(LitemallGoods record);

    int updateByPrimaryKeyWithBLOBs(LitemallGoods record);

    int updateByPrimaryKey(LitemallGoods record);

    LitemallGoods selectOneByExampleWithBLOBs(LitemallGoodsExample example);

    int updateGoodsById(@Param("id") Integer id);

    int getMaxById();

}